package com.appkubes.mall.core.service;

import com.appkubes.base.core.mbp.AbstractBaseService;
import com.appkubes.mall.core.dao.BaseMallArticleDao;
import com.appkubes.mall.core.entity.MallArticle;

import com.appkubes.base.core.entity.vo.PageVO;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

/**
 * @author Rongjie
 * @description
 */

public interface BaseMallArticleService extends AbstractBaseService<BaseMallArticleDao, MallArticle> {

    MallArticle getOneByEntity(MallArticle entity);

    List<MallArticle> selectListByEntity(MallArticle entity);

    IPage<MallArticle> selectPageByEntity(IPage<MallArticle> page);
    IPage<MallArticle> selectPageByEntity(PageVO pageVO);

    IPage<MallArticle> selectPageByEntity(MallArticle entity, IPage<MallArticle> page);
    IPage<MallArticle> selectPageByEntity(MallArticle entity, PageVO pageVO);

    IPage<MallArticle> selectPageByEntity(MallArticle entity, Integer pageNo, Integer pageSize);

    Boolean removeByEntity(MallArticle entity);
}
